package com.h3c.nem.dto.form;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 用例
 * "approver": {"empNumber": "lys2065","name": "林威"}, "approveType": "Agree", "currentNode": "申请人",
 * "approveOpinion": "ok~", "approveTime": "2021-02-25 16:52:38", "approveTypeVal": "同意"
 */
@Data
public class HistoryInfo {

    /**
     * 用户信息 key:
     * empNumber 域账号
     * name 姓名
     */
    private JSONObject approver;
    /**
     * 审核类型 同意-Agree，拒绝-Reject，转发-Transfer
     */
    private String approveType;
    /**
     * 节点名称
     */
    private String currentNode;
    /**
     * 审批意见
     */
    private String approveOpinion;
    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="Asia/Shanghai")
    private Date approveTime;
    /**
     * 审核类型
     */
    private String approveTypeVal;

}
